import request from '../utils/request';

//查询用户信息 
export async function list(data,params) {
    return request({
        url: '/user/'+data.current+'/'+data.size+'?nickname='+data.nickname,
        method: 'get',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

//删除用户信息
export async function delUser(data,params) {
    return request({
        url: '/user/'+data.uid,
        method: 'delete',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

